home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / LunarLander.swf / scripts / frame_4 / PlaceObject2_80_55 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-13  |  711 b   |  18 lines

  1. onClipEvent(enterFrame){
  2.    score = _root.lander.score;
  3.    mval = score - score % 1000000;
  4.    m.gotoAndStop(mval / 1000000 + 1);
  5.    hthval = score - mval - score % 100000;
  6.    hth.gotoAndStop(hthval / 100000 + 1);
  7.    tthval = score - mval - hthval - score % 10000;
  8.    tth.gotoAndStop(tthval / 10000 + 1);
  9.    thval = score - mval - hthval - tthval - score % 1000;
  10.    th.gotoAndStop(thval / 1000 + 1);
  11.    hval = score - mval - hthval - tthval - thval - score % 100;
  12.    h.gotoAndStop(hval / 100 + 1);
  13.    tval = score - mval - hthval - tthval - thval - hval - score % 10;
  14.    t.gotoAndStop(tval / 10 + 1);
  15.    uval = score - mval - hthval - tthval - thval - hval - tval;
  16.    u.gotoAndStop(uval + 1);
  17. }
  18.